package com.qf.mapper;

import com.qf.pojo.Parent;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ParentMapper {
    List<Parent> selectAllParent(String name, Integer parentId, Integer status, Integer start, Integer limit);

    List<Parent> selectParent(Integer parentId);

    Parent selectParentCount();

    int updateParent(Parent parent);

    int insertParent(Parent parent);

    int updateParentStatus(@Param("parentIds") List<Integer> parentIds, @Param("parentStatus") Integer parentStatus);


    int deleteParent(@Param("parentIds") List<Integer> parentIds);
}
